Nevron Open Vision Documentation
Nevron.Nov.Text Namespace / NEncoding Class / GetCharCount Method / GetCharCount(Byte[],Int32,Int32) Method
The array of bytes to convert to chars.
The starting index in the byte array to start working from.
The number of bytes to convert.


In This Topic
    GetCharCount(Byte[],Int32,Int32) Method
    In This Topic
    Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetCharCount( _
       ByVal bytes() As System.Byte, _
       ByVal byteIndex As System.Integer, _
       ByVal byteCount As System.Integer _
    ) As System.Integer
    'Usage
     
    
    Dim instance As NEncoding
    Dim bytes() As System.Byte
    Dim byteIndex As System.Integer
    Dim byteCount As System.Integer
    Dim value As System.Integer
     
    value = instance.GetCharCount(bytes, byteIndex, byteCount)
    public System.int GetCharCount( 
       System.byte[] bytes,
       System.int byteIndex,
       System.int byteCount
    )

    Parameters

    bytes
    The array of bytes to convert to chars.
    byteIndex
    The starting index in the byte array to start working from.
    byteCount
    The number of bytes to convert.

    Return Value

    The number of decoded chars.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also